home *** CD-ROM | disk | FTP | other *** search
-
-
-
- dddduuuupppp((((2222)))) dddduuuupppp((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _dddd_uuuu_pppp - duplicate an open file descriptor
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>>
-
- _iiii_nnnn_tttt _dddd_uuuu_pppp_((((_iiii_nnnn_tttt _ffff_iiii_llll_dddd_eeee_ssss_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _f_i_l_d_e_s is a file descriptor obtained from a _cccc_rrrr_eeee_aaaa_tttt, _oooo_pppp_eeee_nnnn, _dddd_uuuu_pppp, _ffff_cccc_nnnn_tttt_llll,
- _pppp_iiii_pppp_eeee, or _iiii_oooo_cccc_tttt_llll system call. _dddd_uuuu_pppp returns a new file descriptor having the
- following in common with the original:
-
- Same open file (or pipe).
-
- Same file pointer (i.e., both file descriptors share one file
- pointer).
-
- Same access mode (read, write or read/write).
-
- The new file descriptor is set to remain open across _eeee_xxxx_eeee_cccc system calls
- [see _ffff_cccc_nnnn_tttt_llll(2)].
-
- The file descriptor returned is the lowest one available.
-
- _dddd_uuuu_pppp will fail if one or more of the following are true:
-
- _EEEE_BBBB_AAAA_DDDD_FFFF _f_i_l_d_e_s is not a valid open file descriptor.
-
- _EEEE_IIII_NNNN_TTTT_RRRR A signal was caught during the _dddd_uuuu_pppp system call.
-
- _EEEE_MMMM_FFFF_IIII_LLLL_EEEE The process has too many open files [see _gggg_eeee_tttt_rrrr_llll_iiii_mmmm_iiii_tttt(2)].
-
- _EEEE_NNNN_OOOO_LLLL_IIII_NNNN_KKKK _f_i_l_d_e_s is on a remote machine and the link to that machine
- is no longer active.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _cccc_llll_oooo_ssss_eeee(2), _cccc_rrrr_eeee_aaaa_tttt(2), _eeee_xxxx_eeee_cccc(2), _ffff_cccc_nnnn_tttt_llll(2), _gggg_eeee_tttt_rrrr_llll_iiii_mmmm_iiii_tttt(2), _oooo_pppp_eeee_nnnn(2), _pppp_iiii_pppp_eeee(2),
- _dddd_uuuu_pppp_2222(3C), _llll_oooo_cccc_kkkk_ffff(3C).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion a non-negative integer, namely the file
- descriptor, is returned. Otherwise, a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo
- is set to indicate the error.
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-